﻿namespace KeRui.BLL
{
    using KeRui.DAL;
    using KeRui.Model;
    using System;

    public class CmsCatcher
    {
        private readonly KeRui.DAL.CmsCatcher dal = new KeRui.DAL.CmsCatcher();

        public int Check(int Interval)
        {
            return this.dal.Check(Interval);
        }

        public KeRui.Model.CmsCatch GetModel(int ServerID)
        {
            return this.dal.GetModel(ServerID);
        }

        public void Init(int ServerID)
        {
            this.dal.Init(ServerID);
        }

        public void Repair(int ServerID)
        {
            this.dal.Repair(ServerID);
        }

        public void Update(int CatchID, int State)
        {
            this.dal.Update(CatchID, State);
        }

        public void UpdateError(int CatchID)
        {
            this.dal.UpdateError(CatchID);
        }

        public void UpdatePage(int CatchID, int CurPage)
        {
            this.dal.UpdatePage(CatchID, CurPage);
        }

        public void UpdateUsing(int CatchID, int IsUsing)
        {
            this.dal.UpdateUsing(CatchID, IsUsing);
        }
    }
}

